import {createApp} from 'vue'
import App from './App.vue'

const app = createApp(App)
//npm i element-plus --save
import ep from 'element-plus'
import 'element-plus/dist/index.css'

import zhCn from 'element-plus/es/locale/lang/zh-cn'

app.use(ep, {locale: zhCn})

// 安装icons组件
// npm install @element-plus/icons-vue
import * as epi from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(epi)) {
    app.component(key, component)
}

app.config.globalProperties.$name = '张三丰'
app.config.globalProperties.age = 18
app.config.globalProperties.$user = {id: 10, age: 28, name: '李四'}

app.mount('#app')
